package com.shuwen.gcdj.bean.workingConditions.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;

/**
 * 统计查询条件
 * @author XYC
 */
@Data
@ApiModel
public class   StatisticConditionReq {

    /**
     * 设备编码
     */
    @ApiModelProperty(value = "设备编码",required = true)
    @NotBlank(message = "equipmentCode设备编码不能为空")
    private String equipmentCode;


    /**
     * 位置值
     */
    @ApiModelProperty(value = "位置值")
    public Integer positionValue;

    /**
     * 时间
     */
    @ApiModelProperty(value = "时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime ts ;
}
